package com.chentu.aliyun.oss.autoConfiguration;

import com.chentu.aliyun.oss.properties.OssProperties;
import com.chentu.aliyun.oss.service.impl.AliyunOssClient;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Author: LiZhong Wang
 * <p> DateTime: 2024/9/24 10:20
 * <p> Description: 自动配置类
 * <p>
 **/
@Configuration
@EnableConfigurationProperties(OssProperties.class)
public class AliyunOssAutoConfiguration {

	@Bean
	public AliyunOssClient aliyunOssClient(OssProperties properties){
		return new AliyunOssClient(properties);
	}
}
